<template>
  <transition name="newComfim-fade">
    <div v-show="show" class="newComfim" tabindex="-1" role="dialog" aria-labelledby="bombConfirmLabel"
      aria-hidden="false">
      <div class="newComfim-mask" @click.stop="onClosed"></div>
      <div class="newComfim-wrap">
        <div class="newComfim-content">
          <div class="newComfim-header">
            <div class="newComfim-header-title">
              {{title}}
            </div>
          </div>
          <div class="newComfim-footer">
            <div type="button" class="mei-btn mei-btn-primary" id="confirmButtons1" @click="onClosed">
              确定
            </div>
          </div>
        </div>
      </div>
    </div>
  </transition>
</template>

<script>
  export default {
    data() {
      return {
        show: true,
        title: "",
        text: "",
        button: []
      };
    },
    methods: {
      onClosed() {
        this.close();
      }
    }
  };

</script>

<style rel="stylesheet">
  .newComfim .newComfim-mask {
    position: fixed;
    overflow: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2010;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
  }

  .newComfim {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20010;
  }

  .newComfim .newComfim-wrap {
    z-index: 2012;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    width: 300px;
    height: 200px;
    background: rgba(255, 255, 255, 1);
    border-radius: 4px;
    user-select: none;
  }

  .newComfim .newComfim-wrap .newComfim-content {
    width: 300px;
    height: 200px;
    background: rgba(255, 255, 255, 1);
    border-radius: 4px;
    user-select: none;
    z-index: 2012;
    overflow: hidden;
  }

  .newComfim .newComfim-header {
    height: 132px;
    width: 100%;
    overflow: hidden;
  }

  .newComfim .newComfim-header .newComfim-header-title {
    width: 85%;
    margin: 0 auto;
    min-height: 22px;
    font-size: 16px;
     
    font-weight: 400;
    color: rgba(62, 63, 66, 1);
    line-height: 22px;
    margin-top: 50px;
    overflow: hidden;
    text-align: center;
  }

  .newComfim .newComfim-footer {
    width: 100%;
    height: 68px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .newComfim .newComfim-footer .mei-btn {
    width: 130px;
    height: 38px;
    background: linear-gradient(360deg, rgba(246, 247, 249, 1) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0px 1px 1px 0px rgba(22, 29, 37, 0.05), 0px 2px 0px 0px rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(216, 220, 230, 1);
    cursor: pointer;
    font-size: 16px;
     
    color: rgba(62, 63, 66, 1);
    margin-right: 15px;
    margin-left: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .newComfim .newComfim-footer .mei-btn-primary {
    background-color: #4096e6;
    border-top: 0px solid #999999;
    background: linear-gradient(360deg, rgba(52, 170, 68, 1) 0%, rgba(56, 178, 73, 1) 100%);
    box-shadow: 0px 1px 1px 0px rgba(19, 31, 21, 0.1), 0px 2px 0px 0px rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    border: 1px solid rgba(45, 156, 60, 1);
    color: rgba(255, 255, 255, 1);
  }

  .newComfim-fade-enter,
  .newComfim-fade-leave-to {
    transform: scale(0);
  }

  .newComfim-fade-enter-active {
    animation: bounce-in 0.3s;
  }

  .newComfim-fade-leave-active {
    animation: bounce-in 0.3s reverse;
  }

  @keyframes bounce-in {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
  }

</style>
